package com.tryaging.consumer;

import com.tryaging.privader.Hello;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author CKC
 * @DateTime 2021/11/21 13:00
 */
@Service
public class YiYi {
    @Resource
    private Hello hello;

    public String getMsg() throws InterruptedException {
        String msg = hello.outMsg("ckc ");
        return (msg == null || "".equals(msg)) ? null : msg;
    }
}
